/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package net.easoftware.code.beans.cargas.threading;

import java.util.List;

/**
 *
 * @author eliu
 */
public class Result {

    private Object currentBean;
    private List<String> messages;
    private Throwable error;
    private boolean contieneLn;
    private boolean contieneUn;

    public Result(boolean contieneLn, boolean contieneUn) {
        this.contieneLn = contieneLn;
        this.contieneUn = contieneUn;
    }

    public Result(List<String> messages, Throwable error) {
        this.messages = messages;
        this.error = error;
    }

    public Result() {
    }

    public boolean isContieneLn() {
        return contieneLn;
    }

    public void setContieneLn(boolean contieneLn) {
        this.contieneLn = contieneLn;
    }

    public boolean isContieneUn() {
        return contieneUn;
    }

    public void setContieneUn(boolean contieneUn) {
        this.contieneUn = contieneUn;
    }

    public Object getCurrentBean() {
        return currentBean;
    }

    public void setCurrentBean(Object currentBean) {
        this.currentBean = currentBean;
    }

    public List<String> getMessages() {
        return messages;
    }

    public void setMessages(List<String> messages) {
        this.messages = messages;
    }

    public Throwable getError() {
        return error;
    }

    public void setError(Throwable error) {
        this.error = error;
    }
}
